<?php
require("../jdcr/php/BasePage.php");
  
$page = null;


if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
  class Redirector extends BasePage { 

    function __construct($aLayoutFileName = "") {
      parent::__construct($aLayoutFileName);
      $this->setCaching(false); 
      $this->assign("urlId",$_SERVER['QUERY_STRING']);
    } 
  }
   
  $page = new Redirector("redirector.tpl");
} else {
  class Index extends BasePage { 

    function __construct($aLayoutFileName = "") {
      parent::__construct($aLayoutFileName); 
    } 
  }
   
  $page = new Index();
}

$page->show();
?>